package com.cskaoyan.mall.service;

import com.cskaoyan.mall.model.Admin;

import java.util.List;

/**
 * @PackgeName: com.cskaoyan.mall.service
 * @ClassName: AdminService
 * @Author: admin
 * Date: 2020/4/29 21:48
 * project name: Javaproject1
 * @Version:
 * @Description:
 */
public interface AdminService {
    int login(Admin admin);

    List<Admin> allAdmins();

    int addAdminss(Admin admin);

    /**
     * 需要逻辑：动态SQL语句
     *
     * @param admin
     * @return
     */
    List<Admin> getSearchAdmins(Admin admin);

    int updateAdminss(Admin admin);
}
